
import java.util.ArrayList;


public class Main {
    public static void main(String[] args) {
        Cards cards = new Cards();
        ArrayList<Card> arrayList = new ArrayList<>();
        //生成一副牌
        System.out.println("===生成一副牌===");
        System.out.println(cards.buyCards(arrayList));
        System.out.println("====洗牌===");
        cards.shuffle(arrayList);
        System.out.println(arrayList);
        System.out.println("===轮流抓牌===");
        ArrayList<ArrayList<Card>> arrayLists = cards.drawCard(arrayList);
        System.out.println("剩余的牌：");
        System.out.println(arrayList);
        System.out.println("各自抓到的牌：");
        for (ArrayList<Card> list : arrayLists) {
            System.out.println(list);
        }

    }
}
